import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class StringFormat1 {
    public static void main(String[] args) {
        for(int i = 0;i < 10 ; i++){
            String num = String.format("%03d,",i);
            System.out.print(num);
        }
        System.out.println();
        System.out.println(String.format("%tT%n",new Date()));
        System.out.printf(String.format("%2$S %s %<S %n","wz","by"));
        Calendar c = Calendar.getInstance();
        String info = String.format(Locale.CHINA,"%tA",c);
        System.out.println(info);
    }
}
